package com.dong.entity;

//import com.fasterxml.jackson.annotation.JsonFormat;
//import org.springframework.format.annotation.DateTimeFormat;
//import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Orders {
    private int o_id;
    private String o_name;
    //用于从页面封装到数据库时转换
//    @DateTimeFormat(pattern = "yyyy-mm-dd hh:mm:xx")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date o_date;
    private Double o_money;
    private int a_id;
    private Account account;

    @Override
    public String toString() {
        return "Orders{" +
                "o_id=" + o_id +
                ", o_name='" + o_name + '\'' +
                ", o_date=" + o_date +
                ", o_money=" + o_money +
                ", a_id=" + a_id +
                ", account=" + account +
                '}';
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }


    public int getO_id() {
        return o_id;
    }

    public void setO_id(int o_id) {
        this.o_id = o_id;
    }

    public String getO_name() {
        return o_name;
    }

    public void setO_name(String o_name) {
        this.o_name = o_name;
    }

    public Date getO_date() {
        return o_date;
    }

    public void setO_date(Date o_date) {
        this.o_date = o_date;
    }

    public Double getO_money() {
        return o_money;
    }

    public void setO_money(Double o_money) {
        this.o_money = o_money;
    }

    public int getA_id() {
        return a_id;
    }

    public void setA_id(int a_id) {
        this.a_id = a_id;
    }
}
